<div class="layui-tab-item layui-form">
	{:hook('adminDocumentSysConfig',['object'=>$object])}
    <fieldset class="layui-elem-field layui-field-title">
	  <legend>邮件服务器设置</legend>
     <table class='wst-form wst-box-top'>
      <tr>
	     <th width='150'>开启邮件发送：</th>
	     <td>
	     <input type="checkbox" {if $object['mailOpen']==1}checked{/if} class="ipt" id="mailOpen" value='1' name="mailOpen" value='1' lay-skin="switch" lay-filter="mailOpen" lay-text="开|关">
	     </td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>SMTP服务器：</th>
	     <td><input type="text" id='mailSmtp' class='ipt' maxLength='100' value='{$object["mailSmtp"]}'/></td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>SMTP端口：</th>
	     <td><input type="text" id='mailPort' class='ipt' maxLength='10' value='{$object["mailPort"]}'/></td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>是否开启SSL：</th>
	     <td>
	     <input type="checkbox" {if $object['mailOpenSSL']==1}checked{/if} class="ipt" id="mailOpenSSL" name="mailOpenSSL" value='1' lay-skin="switch" lay-filter="mailOpenSSL" lay-text="是|否">&nbsp;<span style='color:gray;'>例如SMTP端口为465时需开启；</span>
	     </td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>是否验证SMTP：</th>
	     <td>
	     <input type="checkbox" {if $object['mailAuth']==1}checked{/if} class="ipt" id="mailAuth" name="mailAuth" value='1' lay-skin="switch" lay-filter="mailAuth" lay-text="是|否">
	     </td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>SMTP发件人邮箱：</th>
	     <td><input type="text" id='mailAddress' class='ipt' value='{$object["mailAddress"]}' maxLength='100'/></td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>SMTP登录账号：</th>
	     <td><input type="text" id='mailUserName' class='ipt' value='{$object["mailUserName"]}' maxLength='100'/></td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>SMTP登录密码：</th>
	     <td><input type="text" id='mailPassword' class='ipt' value='{$object["mailPassword"]}' maxLength='100'/></td>
	  </tr>
	  <tr class='mailOpenTr' {if $object['mailOpen']!=1}style='display:none'{/if}>
	     <th>发件人名称：</th>
	     <td><input type="text" id='mailSendTitle' class='ipt' value='{$object["mailSendTitle"]}' maxLength='100'/></td>
	  </tr>
	</table>
    </fieldset>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
	  <legend>短信服务器设置</legend>
	  <table class='wst-form wst-box-top'>
	  <tr>
	  	<th colspan='2' style='text-align:left;padding-left:40px'><span style='color:gray;'>(请确保在“拓展管理-插件管理"中有安装相应的短信插件”)</span></th>
	  </tr>
	  <tr style='display:none'>
	     <th >开启手机验证：</th>
	     <td>
	     <input type="checkbox" checked class="ipt" id="smsOpen" value='1' name="smsOpen" value='1' lay-skin="switch" lay-filter="smsOpen" lay-text="开|关">
	     </td>
	  </tr>
	  <tr>
	     <th width='150'>每个号码每日发送数：</th>
	     <td><input type="text" id='smsLimit' class='ipt' value="{$object['smsLimit']}" maxLength='100'/></td>
	  </tr>
	  <tr>
	     <th>开启短信发送验证码：</th>
	     <td>
	     <input type="checkbox" {if $object['smsVerfy']==1}checked{/if} class="ipt" id="smsVerfy" value='1' name="smsVerfy" value='1' lay-skin="switch" lay-filter="smsVerfy" lay-text="开|关">
	     </td>
	  </tr>
	  {if ($grant)}
	  <tr>
	     <td colspan='2' align='center'>
	     	<button type="button" onclick='javascript:edit()'  class='btn btn-primary btn-mright'><i class="fa fa-check"></i>保存</button>
            <button type="reset"  class='btn'><i class="fa fa-refresh"></i>重置</button>
	     </td>
	  </tr>
	   {/if}
	 </table>
	</fieldset>
</div>